import { createSSRApp } from 'vue';
import { createPinia } from 'pinia';

import App from '@/app.vue';
import { createRouter } from '@/router';

export function createApp() {
  const app = createSSRApp(App);
  const router = createRouter();

  app.use(createPinia());
  app.use(router);

  return { app, router };
}
